import axios from 'axios'
import qs from 'qs'
import serviceConfig from "@/service/config";

/**
 * 全局检索方法
 * @param searchParams
 * @returns {AxiosPromise}
 */
export function globalSearch(searchParams){
    return  axios({
        url:serviceConfig.baseUrl+"/itemjoiner/GET/items",
        method:"POST",
        data:qs.stringify(searchParams,{allowDots: true}),
    });
}